#include <QtGui/QApplication>
#include <QSystemTrayIcon>
#include <QMessageBox>
#include "mainwindow.h"

int main(int argc, char *argv[])
{
    QApplication a(argc, argv);
    a.setQuitOnLastWindowClosed(false);
    if(!QSystemTrayIcon::isSystemTrayAvailable()) {
        QMessageBox::critical(NULL, QObject::tr("Contacts List"), QObject::tr("System tray is not available!"));
        return -1;
    }

    MainWindow w;
    return a.exec();
}
